package com.cjm.one.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.model.base.PasswordDto;
import com.cjm.one.model.system.dto.SysUserInfoDto;
import com.cjm.one.model.system.dto.SysUserInfoFromDto;
import com.cjm.one.model.system.entity.SysUserInfo;
import com.cjm.one.model.system.vo.SysUserInfoVo;
import org.apache.ibatis.annotations.Mapper;

/**
* @author 29289
* @description 针对表【sys_user_info(用户表)】的数据库操作Mapper
* @createDate 2024-09-05 16:21:14
* @Entity com.one.model.system.entity.SysUserInfo
*/
@Mapper
public interface SysUserInfoMapper extends BaseMapper<SysUserInfo> {

    SysUserInfo selectByUsername(String username);

    Page<SysUserInfoVo> selectPageSysUser(Page<SysUserInfoVo> page, SysUserInfoFromDto sysUserInfoDto);


    int updateSysUserInfoById(SysUserInfo sysUserInfo);

    int updateSysUserePasswordById(PasswordDto passwordDto);

    int updateSysUsereStatusById(SysUserInfoDto sysUserInfoDto);
}




